<div id="home-placeholder">

    <div id="wrap" class="clearfix">

        <div id="aside">

            <h3><?= lang('search.best.60sec') ?></h3>

            <? $this->load->view('rentacar/parts/search_box') ?>
			<? $this->load->view('destinations/parts/banner') ?>
            <? $this->load->view('rentacar/parts/map_box') ?>

        </div><!-- / Aside -->

        <div id="main">

            <div class="tabs home-slider">

                <? $cnt=count($action_1); ?>

                <ul>
                    <?
                        for($i=0; $i < $cnt; $i++)
                        {
                            ?>
                            <li><a href="#tabs-<?= $i + 1 ?>"><?= $i + 1 ?></a></li>
                        <? } ?>
                </ul>

                <?
                    for($i=0; $i < $cnt; $i++)
                    {
                        ?>

                        <div class="slider-box" id="tabs-<?= $i + 1 ?>">

                            <? $href=base_url('rentacar/'.urlify::filter($action_1[$i]->name).'-'.$action_1[$i]->id); ?>

                            <? $filename=get_thumbnail(451, 266, $action_1[$i]->f_name) ?>

                            <div class="info">
                                <h2><?= $action_1[$i]->name ?></h2>
                                <p>
                                    <?
                                    if($action_1[$i]->auto_transmission == 1)
                                    {
                                        echo lang('rentacar.automatic');
                                    } else
                                        echo lang('rentacar.manual');
                                    ?>,      
                                    <?= $action_1[$i]->maxpower; ?>, 
                                    <?= $action_1[$i]->fuel_consumption; ?>l/100km, 
                                    <?= $action_1[$i]->seat_count; ?> <?= lang('rentacar.seats') ?>
                                </p>
                                <a href="<?= $href ?>" class="button"><?= lang('rentacar.book.now') ?> &raquo;</a>
                                <span class='big'><?= $action_1[$i]->day13price ?>€ <span>/ <?= lang('rentacar.day') ?></span></span>
                            </div>
                            <img src="<?= $hosting ?>pro-gallery/<?= $action_1[$i]->g_path.'/'.$filename ?>" alt="<?= $action_1[$i]->name ?>"> 
                        </div>

                    <? } ?> <!-- / Slider Box -->

            </div><!-- / Home Slider -->
			<div class='title rentacar-title'>
				<h1><?= lang('title.rentacar.homepage') ?></h1>
			</div>		
			<div class='homepage-description'>
				<p><?= lang('description.rentacar.homepage') ?></p>
			</div>
            <div class="three-columns clearfix">

                <? $cnt=count($action_2); ?>

                <?
                    for($i=0; $i < $cnt; $i++)
                    {
                        if($i == 12)
                            break;
                        ?>

                        <div class="car-box">

                            <? $href=base_url('rentacar/'.urlify::filter($action_2[$i]->name).'-'.$action_2[$i]->id); ?>

                            <? $filename=get_thumbnail(132, 87, $action_2[$i]->f_name) ?>

                            <? $pices=explode(" ", $action_2[$i]->name); ?>

                            <?
                            if(!isset($pices[0]))
                                $pices[0]="Translate";
                            if(!isset($pices[1]))
                                $pices[1]="Translate";
                            ?>

							<h2><span class='homeTitleSpan'><?= $pices[0] ?></span> <?= $pices[1] ?></h2>
                            <!--<h3><?= $pices[0] ?></h3>
                            <h4><?= $pices[1] ?></h4>-->
                            <img src="<?= $hosting ?>pro-gallery/<?= $action_2[$i]->g_path.'/'.$filename ?>" alt="<?= $action_2[$i]->name ?>"> 
                            <a href="<?= $href ?>" class="button"><?= lang('rentacar.book.now') ?> &raquo;</a>
                            <span class='big'><?= $action_2[$i]->day13price ?>€ <span>/ <?= lang('rentacar.day') ?></span></span>
                        </div><!-- / Car box -->

                    <? } ?>

            </div><!-- / Three Columns -->

            <div class="two-columns clearfix">
                <? $this->load->view('parts/two_column') ?>
            </div>

        </div><!-- / Mian -->

    </div><!-- / Wrap -->

</div><!-- / Home placeholder -->